package com.xggstudio.crm.ui.mvp.m;

import android.util.Log;

import java.io.Serializable;
import java.util.List;

public class CusInfo implements Serializable {


    /**
     * result : {"user":{"id":948,"uid":75,"class_id":2,"client_name":"李小姐","client_phone":null,"client_company":null,"client_address":null,"created_at":"2018-04-09 16:38:42","updated_at":"2018-04-09 16:38:42","deleted_at":null,"is_del":0,"client_sex":2,"client_birthday":null,"client_age":null,"client_school":0,"client_work":null,"client_source":null,"clientsed_type":0,"client_identity":0,"client_remarks":null,"client_qq":null,"client_wechat":"13888156491","client_email":null,"client_status":1,"client_exit_msg":null,"client_online":1,"client_province":"云南省","client_city":"昆明市","client_county":"五华区","client_next_visit":null,"client_documentary":null},"crm_follows_list":[{"id":1057,"client_id":948,"admin_id":75,"content":"2018.4.9  想咨询澳洲移民","created_at":"2018-04-09 16:38:43","updated_at":"2018-04-09 16:38:43","admin_name":"熊霞"}],"assist":[{"id":809,"client_id":948,"user_id":0,"percent":0,"created_at":"2018-04-09 16:38:43","updated_at":null,"deleted_at":null}],"admin_user":[{"id":75,"name":"熊霞"}]}
     * code : 1
     * message : SUCCESS
     */

    private ResultBean result;
    private String code;
    private String message;

    public CusInfo() {
        result = new ResultBean();

    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class ResultBean implements Serializable {
        public ResultBean() {
            this.user = new UserBean();
        }

        /**
         * user : {"id":948,"uid":75,"class_id":2,"client_name":"李小姐","client_phone":null,"client_company":null,"client_address":null,"created_at":"2018-04-09 16:38:42","updated_at":"2018-04-09 16:38:42","deleted_at":null,"is_del":0,"client_sex":2,"client_birthday":null,"client_age":null,"client_school":0,"client_work":null,"client_source":null,"clientsed_type":0,"client_identity":0,"client_remarks":null,"client_qq":null,"client_wechat":"13888156491","client_email":null,"client_status":1,"client_exit_msg":null,"client_online":1,"client_province":"云南省","client_city":"昆明市","client_county":"五华区","client_next_visit":null,"client_documentary":null}
         * crm_follows_list : [{"id":1057,"client_id":948,"admin_id":75,"content":"2018.4.9  想咨询澳洲移民","created_at":"2018-04-09 16:38:43","updated_at":"2018-04-09 16:38:43","admin_name":"熊霞"}]
         * assist : [{"id":809,"client_id":948,"user_id":0,"percent":0,"created_at":"2018-04-09 16:38:43","updated_at":null,"deleted_at":null}]
         * admin_user : [{"id":75,"name":"熊霞"}]
         */



        private UserBean user;
        private List<CrmFollowsListBean> crm_follows_list;
        private List<AssistBean> assist;
        private List<AdminUserBean> admin_user;

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public List<CrmFollowsListBean> getCrm_follows_list() {
            return crm_follows_list;
        }

        public void setCrm_follows_list(List<CrmFollowsListBean> crm_follows_list) {
            this.crm_follows_list = crm_follows_list;
        }

        public List<AssistBean> getAssist() {
            return assist;
        }

        public void setAssist(List<AssistBean> assist) {
            this.assist = assist;
        }

        public List<AdminUserBean> getAdmin_user() {
            return admin_user;
        }

        public void setAdmin_user(List<AdminUserBean> admin_user) {
            this.admin_user = admin_user;
        }

        public static class UserBean {
            /**
             * id : 948
             * uid : 75
             * class_id : 2
             * client_name : 李小姐
             * client_phone : null
             * client_company : null
             * client_address : null
             * created_at : 2018-04-09 16:38:42
             * updated_at : 2018-04-09 16:38:42
             * deleted_at : null
             * is_del : 0
             * client_sex : 2
             * client_birthday : null
             * client_age : null
             * client_school : 0
             * client_work : null
             * client_source : null
             * clientsed_type : 0
             * client_identity : 0
             * client_remarks : null
             * client_qq : null
             * client_wechat : 13888156491
             * client_email : null
             * client_status : 1
             * client_exit_msg : null
             * client_online : 1
             * client_province : 云南省
             * client_city : 昆明市
             * client_county : 五华区
             * client_next_visit : null
             * client_documentary : null
             */

            private int id;
            private int uid;
            private int class_id;
            private String client_name;
            private String client_phone;
            private String client_company;
            private String client_address;
            private String created_at;
            private String updated_at;
            private String deleted_at;
            private int is_del;
            private int client_sex;
            private String client_birthday;
            private String client_age;
            private int client_school;
            private String client_work;
            private String client_source;
            private int clientsed_type;
            private int client_identity;
            private String client_remarks;
            private String client_qq;
            private String client_wechat;
            private String client_email;
            private int client_status;
            private String client_exit_msg;
            private int client_online;
            private String client_province;
            private String client_city;
            private String client_county;
            private String client_next_visit;
            private String client_documentary;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getUid() {
                return uid;
            }

            public void setUid(int uid) {
                this.uid = uid;
            }

            public int getClass_id() {
                return class_id;
            }

            public void setClass_id(int class_id) {

                this.class_id = class_id;
            }

            public void setClient_id(int class_id){
                Log.e("UserBean", "setClass_id: " + class_id);
                this.class_id = class_id;
            }

            public String getClient_name() {
                return client_name;
            }

            public void setClient_name(String client_name) {
                this.client_name = client_name;
            }

            public String getClient_phone() {
                return client_phone;
            }

            public void setClient_phone(String client_phone) {
                this.client_phone = client_phone;
            }

            public String getClient_company() {
                return client_company;
            }

            public void setClient_company(String client_company) {
                this.client_company = client_company;
            }

            public String getClient_address() {
                return client_address;
            }

            public void setClient_address(String client_address) {
                this.client_address = client_address;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public String getDeleted_at() {
                return deleted_at;
            }

            public void setDeleted_at(String deleted_at) {
                this.deleted_at = deleted_at;
            }

            public int getIs_del() {
                return is_del;
            }

            public void setIs_del(int is_del) {
                this.is_del = is_del;
            }

            public int getClient_sex() {
                return client_sex;
            }

            public void setClient_sex(int client_sex) {
                this.client_sex = client_sex;
            }

            public String getClient_birthday() {
                return client_birthday;
            }

            public void setClient_birthday(String client_birthday) {
                this.client_birthday = client_birthday;
            }

            public String getClient_age() {
                return client_age;
            }

            public void setClient_age(String client_age) {
                this.client_age = client_age;
            }

            public int getClient_school() {
                return client_school;
            }

            public void setClient_school(int client_school) {
                this.client_school = client_school;
            }

            public String getClient_work() {
                return client_work;
            }

            public void setClient_work(String client_work) {
                this.client_work = client_work;
            }

            public String getClient_source() {
                return client_source;
            }

            public void setClient_source(String client_source) {
                this.client_source = client_source;
            }

            public int getClientsed_type() {
                return clientsed_type;
            }

            public void setClientsed_type(int clientsed_type) {
                this.clientsed_type = clientsed_type;
            }

            public int getClient_identity() {
                return client_identity;
            }

            public void setClient_identity(int client_identity) {
                this.client_identity = client_identity;
            }

            public String getClient_remarks() {
                return client_remarks;
            }

            public void setClient_remarks(String client_remarks) {
                this.client_remarks = client_remarks;
            }

            public String getClient_qq() {
                return client_qq;
            }

            public void setClient_qq(String client_qq) {
                this.client_qq = client_qq;
            }

            public String getClient_wechat() {
                return client_wechat;
            }

            public void setClient_wechat(String client_wechat) {
                this.client_wechat = client_wechat;
            }

            public String getClient_email() {
                return client_email;
            }

            public void setClient_email(String client_email) {
                this.client_email = client_email;
            }

            public int getClient_status() {
                return client_status;
            }

            public void setClient_status(int client_status) {
                this.client_status = client_status;
            }

            public String getClient_exit_msg() {
                return client_exit_msg;
            }

            public void setClient_exit_msg(String client_exit_msg) {
                this.client_exit_msg = client_exit_msg;
            }

            public int getClient_online() {
                return client_online;
            }

            public void setClient_online(int client_online) {
                this.client_online = client_online;
            }

            public String getClient_province() {
                return client_province;
            }

            public void setClient_province(String client_province) {
                this.client_province = client_province;
            }

            public String getClient_city() {
                return client_city;
            }

            public void setClient_city(String client_city) {
                this.client_city = client_city;
            }

            public String getClient_county() {
                return client_county;
            }

            public void setClient_county(String client_county) {
                this.client_county = client_county;
            }

            public String getClient_next_visit() {
                return client_next_visit;
            }

            public void setClient_next_visit(String client_next_visit) {
                this.client_next_visit = client_next_visit;
            }

            public String getClient_documentary() {
                return client_documentary;
            }

            public void setClient_documentary(String client_documentary) {
                this.client_documentary = client_documentary;
            }

            @Override
            public String toString() {
                return "UserBean{" +
                        "id=" + id +
                        ", uid=" + uid +
                        ", class_id=" + class_id +
                        ", client_name='" + client_name + '\'' +
                        ", client_phone='" + client_phone + '\'' +
                        ", client_company='" + client_company + '\'' +
                        ", client_address='" + client_address + '\'' +
                        ", created_at='" + created_at + '\'' +
                        ", updated_at='" + updated_at + '\'' +
                        ", deleted_at='" + deleted_at + '\'' +
                        ", is_del=" + is_del +
                        ", client_sex=" + client_sex +
                        ", client_birthday='" + client_birthday + '\'' +
                        ", client_age='" + client_age + '\'' +
                        ", client_school=" + client_school +
                        ", client_work='" + client_work + '\'' +
                        ", client_source='" + client_source + '\'' +
                        ", clientsed_type=" + clientsed_type +
                        ", client_identity=" + client_identity +
                        ", client_remarks='" + client_remarks + '\'' +
                        ", client_qq='" + client_qq + '\'' +
                        ", client_wechat='" + client_wechat + '\'' +
                        ", client_email='" + client_email + '\'' +
                        ", client_status=" + client_status +
                        ", client_exit_msg='" + client_exit_msg + '\'' +
                        ", client_online=" + client_online +
                        ", client_province='" + client_province + '\'' +
                        ", client_city='" + client_city + '\'' +
                        ", client_county='" + client_county + '\'' +
                        ", client_next_visit='" + client_next_visit + '\'' +
                        ", client_documentary='" + client_documentary + '\'' +
                        '}';
            }
        }

        public static class CrmFollowsListBean {
            /**
             * id : 1057
             * client_id : 948
             * admin_id : 75
             * content : 2018.4.9  想咨询澳洲移民
             * created_at : 2018-04-09 16:38:43
             * updated_at : 2018-04-09 16:38:43
             * admin_name : 熊霞
             */

            private int id;
            private int client_id;
            private int admin_id;
            private String content;
            private String created_at;
            private String updated_at;
            private String admin_name;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getClient_id() {
                return client_id;
            }

            public void setClient_id(int client_id) {
                this.client_id = client_id;
            }

            public int getAdmin_id() {
                return admin_id;
            }

            public void setAdmin_id(int admin_id) {
                this.admin_id = admin_id;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public String getAdmin_name() {
                return admin_name;
            }

            public void setAdmin_name(String admin_name) {
                this.admin_name = admin_name;
            }

            @Override
            public String toString() {
                return "CrmFollowsListBean{" +
                        "id=" + id +
                        ", client_id=" + client_id +
                        ", admin_id=" + admin_id +
                        ", content='" + content + '\'' +
                        ", created_at='" + created_at + '\'' +
                        ", updated_at='" + updated_at + '\'' +
                        ", admin_name='" + admin_name + '\'' +
                        '}';
            }
        }

        public static class AssistBean implements Serializable {
            /**
             * id : 809
             * client_id : 948
             * user_id : 0
             * percent : 0
             * created_at : 2018-04-09 16:38:43
             * updated_at : null
             * deleted_at : null
             */

            private int id;
            private int client_id;
            private int user_id;
            private int percent;
            private String created_at;
            private String updated_at;
            private String deleted_at;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getClient_id() {
                return client_id;
            }

            public void setClient_id(int client_id) {
                this.client_id = client_id;
            }

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public int getPercent() {
                return percent;
            }

            public void setPercent(int percent) {
                this.percent = percent;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public String getDeleted_at() {
                return deleted_at;
            }

            public void setDeleted_at(String deleted_at) {
                this.deleted_at = deleted_at;
            }

            @Override
            public String toString() {
                return "AssistBean{" +
                        "id=" + id +
                        ", client_id=" + client_id +
                        ", user_id=" + user_id +
                        ", percent=" + percent +
                        ", created_at='" + created_at + '\'' +
                        ", updated_at='" + updated_at + '\'' +
                        ", deleted_at='" + deleted_at + '\'' +
                        '}';
            }
        }

        public static class AdminUserBean implements Serializable {
            /**
             * id : 75
             * name : 熊霞
             */

            private int id;
            private String name;

            private int ratio;

            public int getRatio() {
                return ratio;
            }

            public void setRatio(int ratio) {
                this.ratio = ratio;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            @Override
            public String toString() {
                return "AdminUserBean{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "ResultBean{" +
                    "user=" + user +
                    ", crm_follows_list=" + crm_follows_list +
                    ", assist=" + assist +
                    ", admin_user=" + admin_user +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "CusInfo{" +
                "result=" + result +
                ", code='" + code + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
